//
//  BNBaseTableListView.h
//  BNCodeGuide
//
//  Created by Mac on 2021/5/22.
//  Copyright © 2021 kevin007. All rights reserved.
//

#import <UIKit/UIKit.h>

@class BNBaseTableListView;

@protocol BNBaseTableListViewDelegate <NSObject>
 @optional
- (void)tableListView:(BNBaseTableListView *)listView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
@end

@interface BNBaseTableListView : UIView<UITableViewDataSource, UITableViewDelegate>
/** table view*/
@property (nonatomic, strong) UITableView *tableView;
/** dataSource*/
@property (nonatomic, strong) NSArray *dataSource;
/** tableViewStyle*/
@property (nonatomic, assign) UITableViewStyle tableViewStyle;
/** 构造方法*/
- (instancetype)initWithFrame:(CGRect)frame tableViewStyle:(UITableViewStyle)style;


/** BNBaseTableListViewDelegate*/
@property (nonatomic, weak) id<BNBaseTableListViewDelegate>delegate;

/** didSelectRowAtIndexPath actionHandle*/
@property(nonatomic, copy) void(^didSelectRowAtIndexPathHandler)(NSIndexPath *indexPath);

#pragma mark - refreshUI
- (void)refreshUI;

@end
